package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 科目表，课程所属的大科目
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "subject_info")
public class SubjectEntity extends BaseEntity {

    @TableId(value = "subjectId", type = IdType.INPUT)
    private String subjectId;
    @TableField(value = "subjectName")
    private String subjectName;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "isUsed")
    private int isUsed;


    public String getSubjectId () {
        return subjectId;
    }

    public void setSubjectId (String subjectId) {
        this.subjectId = subjectId;
    }


    public String getSubjectName () {
        return subjectName;
    }

    public void setSubjectName (String subjectName) {
        this.subjectName = subjectName;
    }


    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }


    public String getUserId () {
        return userId;
    }

    public void setUserId (String userId) {
        this.userId = userId;
    }

    public int getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
